The most elegant solution that I found is to create dummy console.d.ts file somewhere in your project:
declare module 'console' {
export = typeof import("console");
}
This will prevent auto-importing.
Credits: https://github.com/Microsoft/TypeScript/issues/30471#issuecomment-474963436