The algebraic effect handler pattern is a much simpler mental model than monads. And is transferrable to other languages pretty easily. See something like https://github.com/doeixd/effectively in Typescript
replies(2):
2. There is a much more popular and robust implementation of effects for Typescript: https://effect.website/