To add a hyperlink, I used this example (modified for my needs and gave MWE below):
https://github.com/dolanmiu/docx/blob/master/demo/35-hyperlinks.ts