async function snoozeIncident(incidentId, email) {
  const { snoozeDuration } = await ux.prompt(snoozeDurationPrompt)
  const duration = Math.abs(
    (new Date(snoozeDuration).getTime() - new Date().getTime()) / 1000
  )

  ux.spinner.start(`😴  Snoozing incident ${incidentId}`)
  await pd.snoozeIncident(incidentId, email, { duration })
  ux.spinner.stop('✅  Incident has been snoozed!')
}
/**
 * snoozeIncident snoozes the selected incident until the user selected time
 *
 * @param {string} incidentId The id of the incident to resolve
 * @param {string} email      The current user's email
 */
snoozeIncident snoozes the selected incident until the user selected time
@param {string} incidentId The id of the incident to resolve
@param {string} email      The current user's email
snoozeIncident snoozes the selected incident until the user selected time @param { string } incidentId The id of the incident to resolve @param { string } email The current user ' s email
async function snoozeIncident(incidentId, email) {
  const { snoozeDuration } = await ux.prompt(snoozeDurationPrompt)
  const duration = Math.abs(
    (new Date(snoozeDuration).getTime() - new Date().getTime()) / 1000
  )
  ux.spinner.start(`😴  Snoozing incident ${incidentId}`)
  await pd.snoozeIncident(incidentId, email, { duration })
  ux.spinner.stop('✅  Incident has been snoozed!')
}
async function snoozeIncident ( incidentId , email ) { const { snoozeDuration } = await ux . prompt ( snoozeDurationPrompt ) const duration = Math . abs ( ( new Date ( snoozeDuration ) . getTime ( ) - new Date ( ) . getTime ( ) ) / 1000 ) ux . spinner . start ( ` nc identId}`) await pd . snoozeIncident ( incidentId , email , { duration } ) ux . spinner . stop ( '✅  Incident has been snoozed!') }
snoozeIncident snoozes the selected incident until the user selected time
 @param {string} incidentId The id of the incident to resolve
 @param {string} email      The current user's email
snoozeIncident snoozes the selected incident until the user selected time @param { string } incidentId The id of the incident to resolve @param { string } email The current user ' s email