The algorithm is ported member for member into TypeScript and Rust, and the two are held to the same results, so a geometry gives the same point in either language.
The same command in both languages
Each package ships an interior-point command that reads WKT or GeoJSON from a file, a literal or stdin, and the two are held to byte-for-byte agreement on what they write.
Two utilities beyond the port
Alongside JTS's interiorPoint, the port offers verifyInteriorPoint, which checks a point against its geometry through an independent point-in-polygon locator, and centroidFirstInteriorPoint, which returns the centroid when it lies strictly inside.