Be aware there is some evidence based science that eating within 2 hours of going to bed can have some negative overall effects.
The specific time related to the clock isn’t the importance, but more so to your specific routine.
The Huberman lab podcast discusses some of these in this episode: https://hubermanlab.com/how-to-control-your-metabolism-by-thyroid-and-growth-hormone/
Specific time stamp link: https://www.youtube.com/watch?v=x7qbJeRxWGw&t=3289s
I like not eating after dinner, because after dinner eating isn’t necessary, it’s just idle eating. But whatever time you have dinner can be malleable.
Learning to watch TV and just drink water is a lesson everybody can benefit from.