I wanted a quick way to make very simple text replacements.
let [txt, rep] = await fields(["Text", "Replacement"])
let dir = "/Users/fischgeek/.kenv/scripts" // <- Update to your specific path
await writeFile(`${dir}/${txt}.js`, `//Snippet: ${txt}\nawait keyboard.type("${rep}")`)