set moment autoupdate with TypeScript