/**
 * Utility functions for formatting and helpers
 * Pure functions, no side effects
 */
/**
 * Format uptime since boot
 */
export function formatUptime() {
    // Simplified - would track actual boot time in state
    return '0m';
}
/**
 * Format relative time (e.g., "5m ago")
 */
export function formatRelativeTime(timestamp) {
    const now = Date.now();
    const diff = now - timestamp;
    const minutes = Math.floor(diff / 60000);
    const hours = Math.floor(minutes / 60);
    const days = Math.floor(hours / 24);
    if (days > 0)
        return `${days}d ago`;
    if (hours > 0)
        return `${hours}h ago`;
    if (minutes > 0)
        return `${minutes}m ago`;
    return 'just now';
}
/**
 * Truncate ID to specified length
 */
export function truncateId(id, length = 8) {
    return id.length > length ? id.substring(0, length) : id;
}
//# sourceMappingURL=utils.js.map