I have my old Xbox one X from 2017. Comes with both cords needed to run it, HDMI and the power cord. I did a custom paint job on it years ago, which explain why it looks like this.
The disc drive button doesn't work, you have to go on the selection screen and eject the disc by pressing "eject disc"
Other than that, it still works
!