export const MILLISECOND = 1 ; export const SECOND = 1000 * MILLISECOND ; export const MINUTE = 60 * SECOND ; export const HOUR = 60 * MINUTE ; export const DAY = 24 * HOUR ; export const WEEK = 7 * DAY ; export const MONTH = 30.4375 * DAY ; export const YEAR = 12 * MONTH ; export function sleep ( milliseconds ) { return new Promise < void > ( ( resolve ) => { setTimeout ( resolve , milliseconds ) ; } ) ; }