(s: string, width: number)
| 372 | } |
| 373 | |
| 374 | function pad(s: string, width: number): string { |
| 375 | if (s.length >= width) return s; |
| 376 | return ' '.repeat(width - s.length) + s; |
| 377 | } |
| 378 | |
| 379 | function wrapAt(s: string, width: number): string { |
| 380 | const words = s.split(' '); |