Adding a countdown timer to a jupyter notebook/lab


I’ve used jupyter notebook/lab in certain cloud environments where I only have a certain amount of time before my kernel/notebook is killed. I can kill my notebook after a certain amount of time, but is there a way to display a certain amount of time/timer/countdown timer in the interface of jupyter notebook? Maybe a parameter I can pass to jupyter when I start it?