interface String { trimLines(): string; replaceAll(regex: RegExp, replacement: string): string; } interface Array { sortAlphabetically(transform: (element: T) => string, caseSensitive: boolean): T[]; }