p/sp&quot;;
import &quot;@pnp/sp/webs&quot;;
import &quot;@pnp/sp/lists&quot;;
import &quot;@pnp/sp/fields&quot;;

const sp = spfi(...);

//Create a new multi-line text field called 'My Field' in web
const field = await sp.web.lists.getByTitle(&quot;My List&quot;).fields.createFieldAsXml(
    `&lt;Field Type=&quot;Note&quot; Name=&quot;MyField&quot; DisplayName=&quot;My Field&quot; Required=&quot;FALSE&quot; RichText=&quot;TRUE&quot; RichTextMode=&quot;FullHtml&quot; /&gt;`
);

// we can use this 'field' va