pub fn format_ports_smart(ports: &[u16], max_show: usize) -> String
Format ports list: deduplicate, limit to max_show, add ā+Nā if more