Thanks for your response! I have not tried it yet.
I did some changes to my code but now I am running into a browser issue wherein I cannot access local resources within the project directory. I tried hosting it on an http-server, but I get a multiple define error with Dojo.
I installed the @types/arcgis-js-api and I have gotten the application to read the widget script, however, I am having issues with an Uncaught Reference Error: require is not defined -- which I tried to solve by switching the module setting in tsconfig to commonjs but to no avail. I am wondering what I need to add or change in my settings to get the application to be able to read my script. I also added numerous C#/NuGet packages to the main application like requirejs to try and solve the issue, but nothing seems to be working. Is there anything you can recommend?