.js module "tooltip" info

Hello all,
what kind of comments\sintax do I have to use in my own .js modules in order to make it visible in tooltip when typing something in code editor ?
e.g when import wixusers and type “wixusers.” all functions/objects from that module are displayed in tooltip.

Thank you.

Have you looked in the Wix API Reference, as for Wix Users and sending a triggered email, you simply just need to add wix users in your import.
https://www.wix.com/corvid/reference/wix-users.html#emailUser

Examples

Send a Triggered Email to the currently logged-in member

import wixUsers from 'wix-users';

// ...

let userId = wixUsers.currentUser.id;

wixUsers.emailUser("emailID", userId)
  .then( () => {
    console.log("Triggered email sent");
  } )
  .catch( (err) => {
    console.log(err);
  } );

Send a Triggered Email to the currently logged-in member with variable values

import wixUsers from 'wix-users';

// ...

let userId = wixUsers.currentUser.id;
let value1 = // value for variable1

wixUsers.emailUser("emailID", userId, {
    "variables": {
      "variable1": value1,
      "variable2": "value for variable2"
    }
  } )
  .then( () => {
    console.log("Triggered email sent");
  } )
  .catch( (err) => {
    console.log(err);
  } );

If you want to send an email to a site member who is not logged in, then you will need to use the Wix Users Backend API.
https://www.wix.com/corvid/reference/wix-users-backend.html#emailUser

You can read more about the autocomplete that you are talking about here.
https://support.wix.com/en/article/corvid-working-in-the-code-panel#wix-code-syntax-and-autocomplete

Hi GOS, thank you for your answer but maybe I didn’t explain myself quit well! The code above is just an visual example of what I pretend.
I want to know how is possible to show tooltip text info of my functions from my own modules.
When I’m using wix modules and type something + dot a tooltip with all functions of that module is shown, so I want to understand what I need to do in my modules to be able to show that kind of info on tooltip when coding in other module or page and importing my modules.