const BLOCK = "█"; export function redactText(text: string | null | undefined): string | null { if (!text) return null; return text.replace(/\S/g, BLOCK); }