import * as prettyMs from 'pretty-ms' ; export const prettyPrintDuration = ( duration ) => duration === Number . POSITIVE_INFINITY ? '∞' : duration > 0 ? prettyMs ( duration ) : '-' + prettyMs ( duration * - 1 ) ;