pub fn truncate_text(text: &str, max_width: usize) -> Cow<'_, str>
Truncates text to fit within max_width display columns, appending “…” if truncated. Returns the original string borrowed when no truncation is needed.
max_width