Most of the methods from fs/promises and fs-extra are globally available
// "home" is a method that wraps `path.resolve` based on your home directorylet filePath = home("projects", "kit", "note.txt")// writes a file to the filePath using `fs-extra's` "outputFile"await outputFile(filePath, `Drink more water`)
// "selectFile" uses Finder's file selectorlet filePath = await selectFile()let contents = await readFile(filePath, "utf-8") // Pass the text contents into the editor to quickly edit a filelet result = await editor(contents)await writeFile(filePath, result)