How can I listen to epoch changes?

Question from Discord (sui-sdk channel):

I want to listen to the event when a new epoch is updated, how do I filter? I use typescript.
Hope everyone supports

An epoch changes every ~24h and its part of the protocol so you won’t be able to listen for it in the events. Having said that you can query the current epoch with the getCurrentEpoch method.