export function createMarkdownTableText(rows: number, cols: number): string { const rowCount = Math.max(2, Math.floor(rows)) const colCount = Math.max(1, Math.floor(cols)) const headerCells = Array.from({ length: colCount }, (_, index) => `Header ${index + 1}`) const dividerCells = Array.from({ length: colCount }, () => '---') const bodyRows = Array.from({ length: rowCount - 1 }, () => Array.from({ length: colCount }, () => '').join(' | ') ) return [ `| ${headerCells.join(' | ')} |`, `| ${dividerCells.join(' | ')} |`, ...bodyRows.map((row) => `| ${row} |`) ].join('\n') }