unknown is safer than any, but you must prove or assert its shape. If a value is really a number array, you can assert as number[] to use array methods.
This exercise keeps runtime simple. You will assert and then sum.
const xs: unknown = [1, 2, 3];
const total = (xs as number[]).reduce((a, b) => a + b, 0);
Add up the numbers from an unknown value.