/**
 * Shared output helpers for consistent CLI formatting.
 */
import pc from 'picocolors';
export function printError(message) {
    console.error(`${pc.red('error')} ${message}`);
}
export function printSuccess(message) {
    console.log(`${pc.green('ok')} ${message}`);
}
export function printWarning(message) {
    console.log(`${pc.yellow('warn')} ${message}`);
}
export function printInfo(label, value) {
    console.log(`  ${pc.dim(label.padEnd(14))} ${value}`);
}
export function printHeader(title) {
    console.log(`\n${pc.bold(title)}`);
}
export function formatAge(createdAt) {
    const ms = Date.now() - new Date(createdAt).getTime();
    const minutes = Math.floor(ms / 60_000);
    if (minutes < 60)
        return `${minutes}m`;
    const hours = Math.floor(minutes / 60);
    if (hours < 24)
        return `${hours}h ${minutes % 60}m`;
    const days = Math.floor(hours / 24);
    return `${days}d ${hours % 24}h`;
}
//# sourceMappingURL=output.js.map