interface String { trimLines(): string; } interface Array { sortAlphabetically(transform: (element: T) => string): T[]; }