THis is where Typescript and OOPs concepts comes into picture
like you can divide your files into appropriate structure and just call them where ever you need by creating instance
you can even structure your project just like BE how Controller->Bl and DAL are related 😉
it all depends on how you structure and how its organized