Display text as code in IDE tooltip when describing my components

i m trying to create doc for my components while using them. Basically, i’m adding comments over all my functions headers like this :

/**
 * this is some text
 * @param text this is some text
 * @returns this is some text
 */
export default function component(props: any) {

I want to describe the tooltip when hovering my functions inside vscode.

I’d like to have something like the example in this image. Here, the code example is well formatted and easier to read.

example in vscode