import e from"ms";const t=(t,{withAgo:n}={})=>{if(!t)return`Never`;let r=Date.now()-new Date(t).getTime();return r<0||r>828e5?new Date(t).toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,year:r<0||new Date(t).getFullYear()!==new Date().getFullYear()?`numeric`:void 0}):r<1e3?`Just now`:`${e(r)}${n?` ago`:``}`};export{t};
//# sourceMappingURL=time-ago-3x39IVui.mjs.map