extremely claude-assisted go game based on atproto! working on cleaning up and giving a more unique design, still has a bit of a slop vibe to it.
Something went wrong. Try again.
1234567891011121314151617181920212223export function formatElapsedTime(timestamp: string): string { const now = Date.now(); const then = new Date(timestamp).getTime(); const diffMs = now - then;
const minutes = Math.floor(diffMs / 60000); const hours = Math.floor(minutes / 60); const days = Math.floor(hours / 24);
if (minutes < 1) return 'just now'; if (minutes < 60) return `${minutes}m ago`; if (hours < 24) return `${hours}h ago`; if (days === 1) return '1 day ago'; return `${days} days ago`;}
export function isStale(timestamp: string, thresholdDays: number = 3): boolean { const now = Date.now(); const then = new Date(timestamp).getTime(); const diffDays = (now - then) / (1000 * 60 * 60 * 24); return diffDays > thresholdDays;}