Convert degrees to radians

JavaScript version
const degsToRads = (deg) => (deg * Math.PI) / 180.0;
TypeScript version
const degsToRads = (deg: number): number => (deg * Math.PI) / 180.0;