Smarter JSDoc parsing fixes some type annotations and deletes a lot of private variables.
Matches https://github.com/fivetran/closure-definitions edefd1c.