That makes sense. Although our IntelliSense tries to infer the types of functions and variables as possible.
You can always annotate functions or variables with Doc Comments to specify the type; then you'll get more features like type validation and better IntelliSense (https://docs.devsense.com/en/vs/editor/code-completion#improving-completion)
something like:
/**
* @return mysqli_result|false
*/
function foo() { ... }
might help, if it's necessary.
If there is a case, where IntelliSense /should/ be able to see the type but it doesn't - we'd be happy for a small sample code so we can "teach" it the new pattern.