You can easily have both .env and types. On any TypeScript project you can just pass your process.env through an io-ts, zod or similar library and keep it in a side-effectful module which validates on first import and keeps it globally available.
Is this attitude/phobia a consequence of folks not starting their programmer journey with simple command line programs, anymore?