import { requiredPrompts } from './helpers.js' ; import prompts from 'prompts' ; returns { Promise < string > } export const username = async ( ) : Promise < string > => ( await requiredPrompts ( { type : 'text' , name : 'username' , message : 'Please enter your floatplane email/username' , } ) ) . username ; returns { Promise < string > } export const password = async ( ) : Promise < string > => ( await requiredPrompts ( { type : 'password' , name : 'password' , message : 'Please enter your floatplane password' , } ) ) . password ; param { number } initial returns { Promise < number > } export const videosToSearch = async ( initial ) : Promise < number > => ( await prompts ( { type : 'number' , name : 'videosToSearch' , message : 'How many videos back from the latest do you want to search through for ones to download?' , initial , min : 0 , } ) ) . videosToSearch || initial ; returns { Promise < string > } export const token = async ( ) : Promise < string > => ( await requiredPrompts ( { type : 'text' , name : 'token' , message : 'Please enter your floatplane 2Factor authentication token' , } ) ) . token ;