kernel headers were not found vmware kali linux

Shell
sudo apt install linux-headers-$(uname -r)

Source

Also in Shell: