May I please ask if anyone is able to help me with adding types to javascript function below in typescript? In best case scenario I would like to avoid using \'any\' but I w