Port time.coffee to TS, expose IProcessObject interface.