import { input } from '@inquirer/prompts'; input({ message: 'Enter your name' }).then(text => { console.log(text) })