Modules in typescript
TypeScript uses ES Module syntax (import/export). Declaration files (.d.ts) type external JavaScript. Path aliases simplify imports. Barrel exports (index.ts) organize public APIs. Module resolution follows Node or bundler strategies.