//@ts-ignore import { AutoComplete } from 'enquirer'; export async function getTargetFolder( dirs: string[], options?: { message?: string; initial?: number; }, ): Promise { const prompt = new AutoComplete({ name: 'target', message: 'Select path to be created', initial: 0, choices: [...dirs], ...options, }); const target = await prompt.run(); return target; }