Install change-extension
// Menu: Change Extension// Description: Drag and drop files to change their extension// Author: John Lindquist// Twitter: @johnlindquist /** @type {File[]} */let droppedFiles = await arg("Drop files") let extension = await arg({ placeholder: "Extension", hint: "ts, js, mp4, etc",}) for await (let { path } of droppedFiles) { let tsPath = path.replace(/[^.]*$/, extension) mv(path, tsPath)}