Use .ts for regular TypeScript files that contain only logic and types.

Use .tsx when your file includes JSX or any HTML like syntax magic, commonly used in React components.