Hey,
As far as I know, you cannot redirect HTTP(s) resources to file:// based resources using webRequestAPIs.
You can set up a localhost server to host these files and then use webRequestAPIs to perform the redirects.
You can try using existing Redirect extensions and see if they can help you achieve this use case.
A word of caution: There are some planned changes in webRequest APIs in Manifest V3 proposal.
You can try
Requestly to setup Redirect for this use case and Requestly has a File Library feature which allows you to host your files to get an https URL for your scripts.
So you don't need to set up your localhost server in order to set up redirects.
Hope it helps!
Sachin