CMS-1844 Add type definitions for util methods in RemoteService.ts