The convention seems to be to use the base filename without the .JS in the Typescript definitions I've seen and this will correspond to most people's requirejs configs. An example is Knockout declares module 'knockout'; some people will configure it 'ko', but the majority of code I've seen uses 'knockout' as the configured module name. In the case of toastr I have never seen it configured as anything but toastr.