Goal: Implement the type version of `Math.trunc`, which takes string or number and returns the integer part of a number by removing any fractional digits. For example: Source challenge: https://github.com/type-challenges/type-challenges/tree/main/questions/05140-medium-trunc Reference explanation: https://github.com/ghaiklor/type-challenges-solutions/blob/main/en/medium-trunc.md
Run "Check Solution" to validate your code in the browser.