I guess you have to do it yourself. The original PascalScript package comes with a utility to generate import unit from existing one, but I can't find it in the one shipped with Lazarus. It was a Windows executable with no source AFAIR, probably that's why.