Reseting an array results in undefined

I’m trying to create a “killfeed” script which is supposed to show “kills” in a feed with randomized names from an array.
I don’t want the same name to appear twice in the same feed, so I want to remove every name as it is picked from the array, but I also want to be able to reset the array with the original names.
I’ve figured out the mostpart, but I’m having issues with the reset part as after the “reset” I’m left with an “undefined” response.

const myNames = ["Niko", "Anomaly", "Kandis"];
let names = [...myNames];

function getRandomName() {
  if (names.length === 0) {
    resetNames();
  }
  let randomIndex = Math.floor(Math.random() * names.length);
  let randomName = names[randomIndex];
  names.splice(randomIndex, 1);
  return randomName;
}

function addKill() {
  kills = $("li").length + 1;
  let selectedName = getRandomName();
  $("#killfeed").append('<li><b class="ct">ne0lines</b> killed <i class="t">' + selectedName + '</i></li>');
}

function resetNames() {
  let names = [...myNames];
}

function resetKill() {
  $("ul").fadeOut(1000);
  setTimeout(function() {
    $("li").remove();
  }, 1000);
  $("ul").fadeIn();
  resetNames();
}
body {
  background-color: transparent;
  margin: 0px auto;
  overflow: hidden;
  text-decoration: none;
  font-size: 20px;
  font-family: rajdhani, sans-serif !important;
  letter-spacing: 1px;
  font-weight: 600;
  text-align: center;
}

ul {
  list-style: none;
}

li {
  display: table;
  margin: 0px auto;
  position: relative;
  clear: both;
  float: none;
  min-width: 100px;
  height: 32px;
  line-height: 32px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px #b50000 solid;
  border-radius: 6px;
  padding: 0 10px;
  color: #fff;
  margin-top: 5px;
  right: -100%;
  animation: smooth-appear 1s ease forwards;
}

b {
  font-style: normal;
  font-weight: 600;
}

i {
  font-style: normal;
}

.ct {
  color: rgb(105, 180, 255);
}

.t {
  color: rgb(237, 208, 87);
}

@keyframes smooth-appear {
  to {
    right: 5px;
    opacity: 1;
  }
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<button onClick="javascript:addKill();">Add kill</button>
<button onClick="javascript:resetKill();">Reset</button>
<ul id="killfeed"></ul>