code: async function confirm(question, options = {}) {
    const {
      defaultYes = true,
      timeout,
    } = options
    const hasQ = question.endsWith('?')
    const text = `${hasQ ? question.replace(/\?$/, '') : question} (y/n)${hasQ ? '?' : ''}`
    const { question: answer } = await askQuestions({
      question: {
        text,
        defaultValue: defaultYes ? 'y' : 'n',
      },
    }, timeout)
    return answer == 'y'
  }
docs: Ask a yes/no question. Returns `true` when answer was `y` and `false` otherwise.
  @param {string} question The question, such as "Add default options", or "Continue to delete?".
  @param {_reloquent.ConfirmOptions} [options] Options for the confirmation question.
  @param {boolean} [options.defaultYes=true] Whether the default value is _yes_. Default `true`.
  @param {number} [options.timeout] How long to wait before rejecting the promise. Waits forever by default.