(row: string[])
| 131 | |
| 132 | const separator = colWidths.map((w) => '-'.repeat(w)).join('-+-') |
| 133 | const formatRow = (row: string[]) => |
| 134 | row.map((cell, idx) => padEnd(cell, colWidths[idx]!)).join(' | ') |
| 135 | |
| 136 | console.log(formatRow(headers)) |
| 137 | console.log(separator) |