/** Format retry_after_ms as human-readable countdown */
export function formatRetryCountdown(ms: number): string {
	if (ms <= 0) return "now";
	const seconds = Math.ceil(ms / 1000);
	if (seconds < 60) return `${seconds}s`;
	const minutes = Math.floor(seconds / 60);
	const remainingSec = seconds % 60;
	return remainingSec > 0 ? `${minutes}m ${remainingSec}s` : `${minutes}m`;
}
