Convert radians to degrees

JavaScript version
const radsToDegs = (rad) => (rad * 180) / Math.PI;
TypeScript version
const radsToDegs = (rad: number): number => (rad * 180) / Math.PI;