export const secondsLeft = (expiresAt: number) => Math.max(Math.round((expiresAt - Date.now()) / 1000), 0);