Alright, so we have a Node module string-similarity who exports two functions like this (see: https://github.com/aceakash/string-similarity/blob/master/compare-
string-similarity
To access your methods under a common parent (e.g. similarity), you need to import them under the similarity alias:
similarity
import * as similarity from "string-similarity"; similarity.compareTwoStrings("potato", "tomato");