I want to create a high-quality TypeScript code file that can improve a developer's ability to perform language comprehension, reasoning, algorithms, and mathematics in TypeScript.

Now, please write this high-quality code file whose topic is about station_support_accounts_life_greedy_rectangle.

- Make sure the code file **contains mostly problem-solving logic **.
- You are encouraged to document some functions with concrete input/output examples, but make sure **the total amount of documentation of the code file does not exceed 20%**.
- The documentation should be as concise as possible.
- **Don't leave any placeholders such as TODO or pass.**
- **Don't write example usages or tests.**

Enclose the code file in a TypeScript code block.
