If you write your library in typescript, not JS, do you still have any of these problems?
If not, it sounds like one core issue is 'adding types to an existing untyped codebase is hard'. This checks out. :)
If not, it sounds like one core issue is 'adding types to an existing untyped codebase is hard'. This checks out. :)