You might like Nim, then, which compiles to JS and has a nice type system, and is more concise so less output tokens by LLMs.