pub fn format_duration(secs: u64) -> String
Format a duration in seconds to a human-readable string.
Examples: “45s”, “3m 12s”, “2h 15m”, “1d 6h”