Generating TOTP using OTPAuth library on Nodejs

I do face some problem while generating TOTP by OTPAuth library on Nodejs. Sometimes, time on my devices is not correct, so it led to the incorrect in TOTP generated. I can prevent it by set the right time for my device.

I wonder do we have any way to make sure that the OTPAuth library generate based on the correct time not by manually set time on device?