It's common for these bolts to damage the wiring, but these seem to have been installed without doing that. There are some extra wires under this threshold; probably for a (missing) amp. The U-nuts on the body rail say that this truck came with cab steps.

Install StepShields $50 (includes remove unused step hardware)
StepShield (universal)