Typescript Function Variable Generic Ozempic