Is it possible to get LSP type information in Lua for required modules

I’ve noticed whilst using Lua and sumneko language server that any modules I require don’t have the type information from the module e.g. if I add emmy lua annotations to all the functions in a module then export it and require it in another file. When I hover over the symbol the function is any.

Looking at the definition of require in luajit by going to definition it is annotated with a return value of any, but screenshots from sumneko’s github page show it working in vscode. Does anyone have this working or know if it’s possible to get it working? Is it an issue because we use luajit rather than some other version of lua