export function tryFormatJson(text: string): string { try { return JSON.stringify(JSON.parse(text), null, 2); } catch (_) { return text; } }