Use the TypeScript parser instead of a regex that truncates nested generics and function types. Validate generated syntax and add a regression test. Include workspace aliases and PTY ambient declarations. The full type package build still reports six errors in third-party node-pty source; this commit does not claim to resolve that remaining issue.
NapCat-Types
NapCat 类型定义包,包含 NapCat 及其插件开发所需的所有类型定义。