Yes, that’s precisely what I was trying to convey. Types should be written alongside the implementation it defines, whether it’s an API, a component library, or anything else.
When I said “ourselves” I was speaking from the perspective of the “consumer”, who may not have a hand in the API. If they did, whenever they put their “API consumer” hat on, they would be inclusive in the “shouldn’t have to write the types ourselves” comment.