I don't agree with this - types do not imply abstractions, and simple types make simple code.
Every tool has the potential to be misused in accidental complexity.
Every tool has the potential to be misused in accidental complexity.
But the JS function we would have written would have required someone using it to read and understand it, and the TS function (without using 'any') needs to fully express what its inputs and outputs can look like.
Because of this TS actually tends to guide me towards writing more "Grug brained" code, because I refuse to use 'any' (and throw away TS benefits) and using generics usually requires a trip downstairs for a fresh cup of tea.