TLDR: Thermal-IR and typical surveillance type near-IR are two quite different applications. The Tesla cabin camera almost certainly uses inexpensive near-IR, which at minimum allows the AI driver-attention algorithms to work at night without distracting the driver. Eye tracking also uses near-IR but it's not clear to me that the Tesla cabin camera will be very good at true precise eye tracking.
As mentioned by others above, there is a range of infra-red wavelengths used for different Imaging applications.
Most IR-sensitive cameras, including home security cameras and more pertinently the Tesla cabin camera (at least the current ones*) have sensitivity in what is usually called "near infrared", essentially adjacent but just outside the human-visible deep-red end of the color spectrum.
In most cases, these use active illumination to achieve so-called night vision capability, these days using cheap near-IR LEDs to "light up" the subject for the camera without visibly lighting it up as seen by our eyes.
(In this respect, it's undisturbing and unobtrusive illumination, but it's active and not very "secret" in a military or law enforcement application, because it's quite easy to see the illumination source with an inexpensive camera.)
So, as the famously repurposed cabin camera has become progressively more important for ensuring appropriate driver attention behavior in the L2 Autopilot/FSD modes, Tesla elected simply to add an IR illuminator function so that the driver monitoring could be reasonably effective at night.
This near-IR capability is almost free and is not the same as IR thermal imaging for picking up heat signatures in total darkness. Thermal imaging of people, animals and typical vehicles must provide sensitivity at much longer IR wavelengths, i.e. far deeper into the infrared spectrum because the photon radiation energy of not-very-hot things is much lower.
Yes, thermal imaging does have limited applications in the near-IR, but objects glowing significantly in this range are
nearly "red-hot". Sorry, but most Tesla occupants, whatever they may think of themselves or their dates, are not Hot enough to register at night without the help of the active near-IR illuminator.
Back to the application we are talking about here: to understand why this is free or very low cost, it's important to note that this range can easily be picked up within the Red color hannel of a typical inexpensive RGB digital camera sensor. This is an advantage for the actively-illuminated "night vision" surveillance-camera usage as mentioned. However, it's a disadvantage for accurate photography and videography, because materials that are particularly reflective in the near-infrared (including some clothing) will unnaturally brighten up the image and appear too bright red or otherwise off-color in an RGB image, or simply too light altogether in a monochrome image.
This actually happened in some early digital cameras, including expensive Leica cameras (but also Nikon and others), and it was somewhat embarrassing that the problem had to be remedied by supplying IR-cut filters to attach over the front of the lenses. These were supplied for free or at significant discount as a kind of "recall remedy" for the early adopters who paid a lot of money but sometimes got rather strange results. Follow-on designs paid more attention to fancy multi-coated filters over the sensors - but now people sometimes hack the caneras to remove these again for astronomical, special effects, surveillance or just nerdy hobbyist reasons.
* I have no idea if the Tesla cabin cameras, the pre-IR illuminated versions, had IR-cut filters or not. I don't think it was a very significant issue either way, so probably whatever was cheapest at the time.
Regarding eye tracking: I have no special expertise in this, but most eye tracking systems also do use Illumination in the near-IR spectrum. Notice that if you look at video of people and animals walking around in front of your home night-vision cameras, you will definitely see varying degrees of glowing eyes, due to the reflection and refraction of the eyeball over the retina.
I'm not sure, but I suspect that the above-mirror position of the cabin camera and IR LED probably doesn't correspond to the optimal position for a purposefully designed eye tracking setup. There's no doubt that the AI analysis software can be trained to estimate where you're looking, more or less the same way you can infer where someone is looking whenever you can see his/her face. But I'm not sure that the "real" geometrical IR-return eye tracking method can be accomplished by Tesla's setup, as effectively as it may be in a purpose-built setup as with Ford Blue Cruise or similar systems.
Finally, while on this topic I'll note one more thing: I wonder why ADAS designers, including Tesla, don't add near-IR diode emitters to enhance the exterior night vision of the vehicle. It would help in a number of scenarios, depending on the power level of the emitters, but even relatively low-power and unfocused IR LEDs would help a lot up to moderate distances. I suspect it would also help in wet and foggy conditions due to lower scatter, and I think that a version of IR always-on high beams could improve the car's forward distance vision when visible high beams can't be used.
Sorry this is kind of rambling and not exactly on the topic of the OP joke, but I saw a lot of discussion about IR, thermal imaging and eye tracking. Hope everyone stays safe while using autopilot!