Importing js files into custom script of custom doctypes

I have been trying to import my own javascript file which has functions that i need in many of my custom doctypes. but the problem is im not ot able to import my js file and use those functions in custom script.

Any solutions for this would be much appreciated.