function o(o,t){const e=t?.short?"":" ago",r=new Date,$=new Date(o),a=r.getTime()-$.getTime(),h=Math.floor(a/6e4),n=Math.floor(h/60),f=Math.floor(n/24);return h<1?t?.short?"now":"just now":h<60?`${h}m${e}`:n<24?`${n}h${e}`:f<7?`${f}d${e}`:f<30?`${Math.floor(f/7)}w${e}`:`${Math.floor(f/30)}mo${e}`}export{o as t};